package com.jkt.rms.vo;

import java.math.BigDecimal;
import java.util.Date;

public class ReportVO {
	
	private int resourceId;
	private Date monthDate;
	private int locationId;
	private BigDecimal rate;
	public int getResourceId() {
		return resourceId;
	}
	public void setResourceId(int resourceId) {
		this.resourceId = resourceId;
	}
	public Date getMonthDate() {
		return monthDate;
	}
	public void setMonthDate(Date monthDate) {
		this.monthDate = monthDate;
	}
	public int getLocationId() {
		return locationId;
	}
	public void setLocationId(int locationId) {
		this.locationId = locationId;
	}
	public BigDecimal getRate() {
		return rate;
	}
	public void setRate(BigDecimal rate) {
		this.rate = rate;
	}
	
	@Override
	public int hashCode() {
		return this.resourceId;
	}
	
	@Override
	public boolean equals(Object obj) {
		if (obj instanceof ReportVO) {
			ReportVO other = (ReportVO) obj;
			return (this.getResourceId() == other.getResourceId())
					&& (this.getLocationId() == other.getLocationId())
					&& (this.getMonthDate().compareTo(other.getMonthDate()) == 0);
		}
		return false;
	}
	
	@Override
	public String toString() {
		return ""+this.resourceId+"||"+this.monthDate+"||"+this.locationId+"||"+this.rate;
	}

}
